package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券使用记录表
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-10-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("coupon_usage_record")
@ApiModel(value="CouponUsageRecordDO对象", description="优惠券使用记录表")
public class CouponUsageRecordDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "USAGE_RECORD_ID", type = IdType.AUTO)
    private String usageRecordId;

    @ApiModelProperty(value = "活动ID")
    private String activityId;

    @ApiModelProperty(value = "优惠券ID")
    private String couponId;

    @ApiModelProperty(value = "优惠券编码")
    private String couponCode;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "领用人ID")
    private String recipient;

    @ApiModelProperty(value = "领用人姓名")
    private String recipientName;

    @ApiModelProperty(value = "领用数量")
    private Integer receivingAmount;

    @ApiModelProperty(value = "使用数量")
    private Integer quantityUsed;

    @ApiModelProperty(value = "失效数量")
    private Integer failureQuantity;

    @ApiModelProperty(value = "1未使用、2已使用、3失效")
    private Integer state;

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @ApiModelProperty(value = "优惠券类别")
    private String couponType;

    @ApiModelProperty(value = "优惠券属于这个店铺的店铺名称")
    private String shopName;

    @ApiModelProperty(value = "优惠券属于这个店铺的ID")
    private String shopId;

    @ApiModelProperty(value = "从那个店铺领用的店铺ID")
    private String fromThatShopId;

    @ApiModelProperty(value = "从那个店铺领用的店铺名称")
    private String fromThatShopName;

    @ApiModelProperty(value = "店员扫码人")
    private String clerk;

    @ApiModelProperty(value = "店员ID扫码人")
    private String clerkId;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "订单ID")
    private  String orderId;
}
